import { createRouter, createWebHistory } from 'vue-router'
import register from '../views/register.vue'
import Article from '../views/Article.vue'
const routes = [
  {
    path:'/',
    redirect: '/register'
  },
  {
    path: '/register',
    component: register
  },
  {
    path: '/Article',
    component: Article
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router